package com.site.wisdom_construction.service.scheduleModule;

import com.site.wisdom_construction.dao.scheduleModule.ProgressPlanDao;
import com.site.wisdom_construction.entity.scheduleModule.ProgressPlan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/6/20
 * @Description
 */
@Service
public class ProgressPlanService implements ProgressPlanDao {
    @Autowired
    private ProgressPlanDao progressPlanDao;

    @Override
    public int insertProgressPlan(Map map) {
        return progressPlanDao.insertProgressPlan(map);
    }

    @Override
    public int deleteProgressPlan(Map map) {
        return progressPlanDao.deleteProgressPlan(map);
    }

    @Override
    public int updateProgressPlan(Map map) {
        return progressPlanDao.updateProgressPlan(map);
    }

    @Override
    public List<ProgressPlan> findProgressPlanByProjectId(Map map) {
        return progressPlanDao.findProgressPlanByProjectId(map);
    }

    @Override
    public List<ProgressPlan> findProgressPlanByFatherIdAll(Map map) {
        return progressPlanDao.findProgressPlanByFatherIdAll(map);
    }

    @Override
    public List findProgressPlanByFatherId(Integer id) {
        return progressPlanDao.findProgressPlanByFatherId(id);
    }
}
